

class LayData(object):

    @staticmethod
    def data(code, msg, count, data):
        return {
            "code": 0,
            "msg": msg,
            "count": count,
            "data": data
        }

    @staticmethod
    def data2(code, msg):
        return {
            "code": code,
            "msg": msg
        }